import React from 'react';
import { Button, Carousel, Toast } from 'antd-mobile';
import './sickhistory.css';
import TimeBase from './TimeBase.jsx';
import UserStore from '../../store/UserStore.js';
import { observer } from 'mobx-react';
import { observable, computed, action } from 'mobx';
import "babel-polyfill";
class ArticalDetail extends React.Component {    
    async componentDidMount() {        
        let isLogin = await UserStore.checkLogin();
        this.setState({ isLogin });
        if ( !isLogin ) {
            Toast.info('请先登录', 1);
            this.props.history.push('/login');
        }     
    }

    render() {
        let items = dataSource.map( (val, index) => {
            return <TimeBase key={ index } time={val.time} text={val.text}/>
        });
        return (
            <div className="articaldetail-wrap">                
                <img src="" />
            </div>
        )
    }
}
//https://www.easy-mock.com/mock/5a4d8e2ee5f9cd651a7fd025/jinpu/index
//导出组件；
export default ArticalDetail;
